﻿namespace InfrastructureBase.Base.AuthBase.JwtAuth
{
    public class JwtConfig
    {
        /// <summary>
        /// 发行人
        /// </summary>
        public string Issuer { get; set; }

        /// <summary>
        /// 订阅人
        /// </summary>
        public string Audience { get; set; }

        /// <summary>
        /// 密钥
        /// </summary>
        public string IssuerSigningKey { get; set; }

        /// <summary>
        /// access token过期分钟数
        /// </summary>
        public int? AccessTokenExpiresMinutes { get; set; }

        /// <summary>
        /// 刷新token 
        /// </summary>
        public string RefreshTokenAudience { get; set; }

        /// <summary>
        /// 刷新token过期分钟数
        /// </summary>
        public int? RefreshTokenExpiresMinutes { get; set; }
    }
}
